<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018-10-24
 * Time: 18:46
 */

namespace App\Http\Controllers\Validator;
use Validator;

class OrderVali
{
    public static function order($params)
    {
        $return = true;
        $validator = Validator::make($params, [
            'memberid'   => 'required',
            'zfbaccount' => 'required',
            'pay_amount' => 'required',
            'orderid'    => 'required',
        ]);
        if ($validator->fails()) {
            $return = false;
        }
        return $return;

    }

}